package cm.mefobe.android.telecomcost.entities;

public class Threshold {

	public static final String PROP_TYPE = "Threshold";
	protected double _amount;
	protected TimePeriod _period;
	private long _id = -1;

	public Threshold(double amount, TimePeriod period) {
		setAmount(amount);
		setPeriod(period);
	}

	public Threshold() {
	}

	public Threshold(double d) {
		setAmount(d);
	}

	private boolean selected;
	private String _type;

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean value) {
		selected = value;
	}

	public void setAmount(double d) {
		this._amount = d;
	}

	public double getAmount() {
		return _amount;
	}

	public void setPeriod(TimePeriod _period) {
		this._period = _period;
	}	

	public TimePeriod getPeriod() {
		return _period;
	}

	public String getType(){
		return _type;
	}
	
	public void setType(String type){
		_type = type;
	}

	public void setId(long _id) {
		this._id = _id;
	}

	public long getId() {
		return _id;
	}
}
